//
//  STTVTestViewController.swift
//  iPhone
//
//  Created by Toj on 3/4/24.
//

import UIKit

class STTVTestViewController: STBaseViewController {
    
    lazy var imageView: UIImageView = {
        let view = UIImageView()
        return view
    }()
    
    override func viewDidLoad() {
        super.viewDidLoad()
       
        var cancel = ""
        
        cancel = "cancel".localized(default: "st_language: Cancel")
        print("-->toj: cancel1: \(cancel)")
        
        cancel = "cancel".localized
        print("-->toj: cancel2: \(cancel)")
        
        cancel = "cancel_1".localized(default: "st_language: Cancel")
        print("-->toj: cancel1: \(cancel)")
        
        cancel = "cancel_2".localized
        print("-->toj: cancel2: \(cancel)")
        
        loadgif()
    }
    
    func loadgif() {
        view.addSubview(imageView)
        imageView.frame = CGRect(x: 100, y: 100, width: 100, height: 100)
        
        let urlString = "http://cdn.startimestv.com/static/files/console/85123b39-6d5d-4b36-95cb-5a3c3ea04f62.gif"
        let url = URL(string: urlString)
        imageView.kf.setImage(with: url, placeholder: UIImage(named: "tabBarHomeSelected"))
    }
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        let vc = STFairPlayController()
        navigationController?.pushViewController(vc, animated: true)
    }
}
